<script lang="ts">
export default {
  name: "xt-link",
};
</script>

<script setup lang="ts">
import { ElLink } from "element-plus";
import Typings from "../../../typings";
interface Props {
  // 按钮类型
  type?: Typings.Link.type;
  underline?: boolean;
}

withDefaults(defineProps<Props>(), {
  type: "default",
  underline: false,
});
</script>

<template>
  <el-link class="xt-link" :type="type" :underline="underline">
    <template v-for="(_value, name) in $slots" #[name]="scope" :key="name">
      <slot :name="name" v-bind="scope || {}"></slot>
    </template>
  </el-link>
</template>

<style lang="scss">
@use "../../../scss/xt-link.scss";
</style>
